class BlindBoxSubmitOrderVo {

  BlindBoxSubmitOrderData? data;

  BlindBoxSubmitOrderVo({this.data});

  BlindBoxSubmitOrderVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new BlindBoxSubmitOrderData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class BlindBoxSubmitOrderData {
  int? id;
  String? orderSn;
  int? payStatus;
  int? status;
  String? statusStr;
  int? source;
  String? payableAmount;
  dynamic paidAmount;
  dynamic totalAmount;
  String? createdAt;
  String? updatedAt;

  BlindBoxSubmitOrderData(
      {this.id,
      this.orderSn,
      this.payStatus,
      this.status,
      this.statusStr,
      this.source,
      this.payableAmount,
      this.paidAmount,
      this.totalAmount,
      this.createdAt,
      this.updatedAt});

  BlindBoxSubmitOrderData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    orderSn = json['order_sn'];
    payStatus = json['pay_status'];
    status = json['status'];
    statusStr = json['status_str'];
    source = json['source'];
    payableAmount = json['payable_amount'];
    paidAmount = json['paid_amount'];
    totalAmount = json['total_amount'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['order_sn'] = this.orderSn;
    data['pay_status'] = this.payStatus;
    data['status'] = this.status;
    data['status_str'] = this.statusStr;
    data['source'] = this.source;
    data['payable_amount'] = this.payableAmount;
    data['paid_amount'] = this.paidAmount;
    data['total_amount'] = this.totalAmount;
    data['created_at'] = this.createdAt;
    data['updated_at'] = this.updatedAt;
    return data;
  }
}
